package com.atguigu.gulimall.member.exception;

import com.atguigu.common.exception.BizCodeEnum;
import lombok.Data;

/**
 * @Author ShiJieLin
 * @Date 2022/4/21 21:59
 * @Version 1.0
 */
@Data
public class MemberException extends Exception{

    private BizCodeEnum bizCodeEnum;

    public MemberException(String message) {
        super(message);
    }

    public MemberException(BizCodeEnum bizCodeEnum){
        super(bizCodeEnum.getMsg());
        this.bizCodeEnum = bizCodeEnum;
    }

}
